
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>展示详情数据 · Diboot移动端基础项目</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-vuejs-2/vue.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="添加新数据.html" />
    
    
    <link rel="prev" href="展示列表数据.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                



<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../开始.html">
            
                <a href="../开始.html">
            
                    
                    开始
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../开始/环境准备.html">
            
                <a href="../开始/环境准备.html">
            
                    
                    环境准备
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../开始/下载项目.html">
            
                <a href="../开始/下载项目.html">
            
                    
                    下载项目
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../开始/项目配置.html">
            
                <a href="../开始/项目配置.html">
            
                    
                    项目配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../开始/启动项目.html">
            
                <a href="../开始/启动项目.html">
            
                    
                    启动项目
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../基础.html">
            
                <a href="../基础.html">
            
                    
                    基础
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="路由.html">
            
                <a href="路由.html">
            
                    
                    路由
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="过滤器.html">
            
                <a href="过滤器.html">
            
                    
                    过滤器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="表单验证.html">
            
                <a href="表单验证.html">
            
                    
                    表单验证
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="接口数据格式.html">
            
                <a href="接口数据格式.html">
            
                    
                    接口数据格式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="页面样式管理.html">
            
                <a href="页面样式管理.html">
            
                    
                    页面样式管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="展示列表数据.html">
            
                <a href="展示列表数据.html">
            
                    
                    展示列表数据
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.7" data-path="展示详情数据.html">
            
                <a href="展示详情数据.html">
            
                    
                    展示详情数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="添加新数据.html">
            
                <a href="添加新数据.html">
            
                    
                    添加新数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="更新数据.html">
            
                <a href="更新数据.html">
            
                    
                    更新数据
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../组件.html">
            
                <a href="../组件.html">
            
                    
                    组件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../组件/图片上传.html">
            
                <a href="../组件/图片上传.html">
            
                    
                    图片上传
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../组件/图片预览.html">
            
                <a href="../组件/图片预览.html">
            
                    
                    图片预览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../组件/关联数据列表选择.html">
            
                <a href="../组件/关联数据列表选择.html">
            
                    
                    关联数据列表选择
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../组件/列表分页组件.html">
            
                <a href="../组件/列表分页组件.html">
            
                    
                    列表分页组件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>



                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                

                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >展示详情数据</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x5C55;&#x793A;&#x8BE6;&#x60C5;&#x6570;&#x636E;"><b>1. </b>&#x5C55;&#x793A;&#x8BE6;&#x60C5;&#x6570;&#x636E;</a></li><ul><li><span class="title-icon "></span><a href="#&#x65B0;&#x5EFA;&#x8BE6;&#x60C5;&#x7EC4;&#x4EF6;"><b>1.1. </b>&#x65B0;&#x5EFA;&#x8BE6;&#x60C5;&#x7EC4;&#x4EF6;</a></li><li><span class="title-icon "></span><a href="#&#x6DFB;&#x52A0;&#x8BE6;&#x60C5;&#x9875;&#x8DEF;&#x7531;"><b>1.2. </b>&#x6DFB;&#x52A0;&#x8BE6;&#x60C5;&#x9875;&#x8DEF;&#x7531;</a></li><li><span class="title-icon "></span><a href="#mixins"><b>1.3. </b>mixins</a></li><ul><li><span class="title-icon "></span><a href="#data&#x5C5E;&#x6027;"><b>1.3.1. </b>data&#x5C5E;&#x6027;</a></li><li><span class="title-icon "></span><a href="#methods&#x65B9;&#x6CD5;"><b>1.3.2. </b>methods&#x65B9;&#x6CD5;</a></li><li><span class="title-icon "></span><a href="#&#x7EC4;&#x4EF6;&#x6302;&#x8F7D;"><b>1.3.3. </b>&#x7EC4;&#x4EF6;&#x6302;&#x8F7D;</a></li></ul><li><span class="title-icon "></span><a href="#&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x83B7;&#x53D6;"><b>1.4. </b>&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x83B7;&#x53D6;</a></li><ul><li><span class="title-icon "></span><a href="#&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x63A5;&#x53E3;"><b>1.4.1. </b>&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x63A5;&#x53E3;</a></li><li><span class="title-icon "></span><a href="#&#x6570;&#x636E;&#x683C;&#x5F0F;"><b>1.4.2. </b>&#x6570;&#x636E;&#x683C;&#x5F0F;</a></li></ul><li><span class="title-icon "></span><a href="#&#x6837;&#x5F0F;"><b>1.5. </b>&#x6837;&#x5F0F;</a></li></ul></ul></div><a href="#&#x5C55;&#x793A;&#x8BE6;&#x60C5;&#x6570;&#x636E;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x5C55;&#x793A;&#x8BE6;&#x60C5;&#x6570;&#x636E;"><a name="&#x5C55;&#x793A;&#x8BE6;&#x60C5;&#x6570;&#x636E;" class="anchor-navigation-ex-anchor" href="#&#x5C55;&#x793A;&#x8BE6;&#x60C5;&#x6570;&#x636E;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x5C55;&#x793A;&#x8BE6;&#x60C5;&#x6570;&#x636E;</h1>
<p>&#x5BF9;&#x4E8E;&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x7684;&#x5C55;&#x793A;&#xFF0C;&#x6211;&#x4EEC;&#x63D0;&#x4F9B;&#x4E86;&#x76F8;&#x5E94;&#x7684;&#x901A;&#x7528;&#x6D41;&#x7A0B;&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x53C2;&#x7167;&#x8BE5;&#x6D41;&#x7A0B;&#x6765;&#x5FEB;&#x901F;&#x6784;&#x5EFA;&#x60A8;&#x7684;&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x5C55;&#x793A;&#x9875;&#x9762;&#x3002;</p>
<h2 id="&#x65B0;&#x5EFA;&#x8BE6;&#x60C5;&#x7EC4;&#x4EF6;"><a name="&#x65B0;&#x5EFA;&#x8BE6;&#x60C5;&#x7EC4;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#&#x65B0;&#x5EFA;&#x8BE6;&#x60C5;&#x7EC4;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. &#x65B0;&#x5EFA;&#x8BE6;&#x60C5;&#x7EC4;&#x4EF6;</h2>
<ul>
<li>&#x65B0;&#x5EFA;detail.vue&#x7EC4;&#x4EF6;&#x5230; <a href="">src/views</a> &#x6587;&#x4EF6;&#x5939;&#x4E0B;&#x76F8;&#x5173;&#x4E1A;&#x52A1;&#x6587;&#x4EF6;&#x5939;&#x5185;&#x3002;</li>
<li>&#x7EC4;&#x4EF6;&#x5185;&#xFF0C;&#x6DFB;&#x52A0; template&#x3001;script&#x3001;style&#x6807;&#x7B7E;&#xFF0C;&#x5E76;&#x5F15;&#x5165;&#x76F8;&#x5173;&#x57FA;&#x7840;&#x4EE3;&#x7801;&#xFF08;&#x4EE5;&#x4E0B;&#x793A;&#x4F8B;&#x662F;&#x4EE5;student&#x4E3A;&#x4F8B;&#x7684;&#xFF0C;&#x5177;&#x4F53;&#x4E1A;&#x52A1;&#x4E2D;&#x53EF;&#x5C06;student&#x66FF;&#x6362;&#x4E3A;&#x81EA;&#x5DF1;&#x7684;&#x82F1;&#x6587;&#x540D;&#x79F0;&#xFF0C;&#x9075;&#x5FAA;&#x9A7C;&#x5CF0;&#x547D;&#x540D;&#x6CD5;&#xFF09;&#x3002;</li>
</ul>
<pre><code>&lt;template&gt;
    &lt;div class=&quot;studentDetail&quot; v-show=&quot;showBox&quot;&gt;
        &lt;mt-cell title=&quot;&#x59D3;&#x540D;&quot;&gt;{{ model.name | formatNull }}&lt;/mt-cell&gt;
        &lt;mt-cell title=&quot;&#x6027;&#x522B;&quot;&gt;{{ model.gendar | formatNull }}&lt;/mt-cell&gt;
    &lt;/div&gt;
&lt;/template&gt;
&lt;script&gt;
import detail from &apos;@/components/mixins/detail&apos;;

export default {
  name: &apos;studentDetail&apos;,
  data() {
    return {
      name: &apos;student&apos;,
      attachMore: true,
    };
  },
  mixins: [detail],
  components: {
  },
};
&lt;/script&gt;

&lt;style scoped lang=&quot;stylus&quot; rel=&quot;stylesheet/stylus&quot;&gt;
    @import &quot;../../common/stylus/views/detailview.styl&quot;
&lt;/style&gt;
</code></pre><h2 id="&#x6DFB;&#x52A0;&#x8BE6;&#x60C5;&#x9875;&#x8DEF;&#x7531;"><a name="&#x6DFB;&#x52A0;&#x8BE6;&#x60C5;&#x9875;&#x8DEF;&#x7531;" class="anchor-navigation-ex-anchor" href="#&#x6DFB;&#x52A0;&#x8BE6;&#x60C5;&#x9875;&#x8DEF;&#x7531;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. &#x6DFB;&#x52A0;&#x8BE6;&#x60C5;&#x9875;&#x8DEF;&#x7531;</h2>
<p>&#x5728; src/router.js &#x6587;&#x4EF6;&#x4E2D;&#xFF0C;routes&#x7684;children&#x5B57;&#x6BB5;&#x4E2D;&#x6DFB;&#x52A0;&#x8BE6;&#x60C5;&#x9875;&#x9762;&#x7684;&#x8DEF;&#x7531;&#x5BF9;&#x8C61;&#xFF1A;</p>
<pre><code class="lang-javascript"><span class="hljs-keyword">import</span> StudentDetail <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;./views/student/detail&apos;</span>
<span class="hljs-keyword">const</span> routes = [
  {
    path: <span class="hljs-string">&apos;/&apos;</span>,
    name: <span class="hljs-string">&apos;pageTransition&apos;</span>,
    component: PageTransition,
    children: [{
        path: <span class="hljs-string">&apos;/student/detail&apos;</span>,
        name: <span class="hljs-string">&apos;studentDetail&apos;</span>,
        component: StudentDetail
    }].concat(customRoutes),
  },
];
</code></pre>
<h2 id="mixins"><a name="mixins" class="anchor-navigation-ex-anchor" href="#mixins"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. mixins</h2>
<p>&#x5728;&#x4E0A;&#x9762;&#x7684;&#x57FA;&#x7840;&#x4EE3;&#x7801;&#x4E2D;&#xFF0C;&#x5F15;&#x5165;&#x4E86;detail&#x7684;mixins&#xFF0C;mixins&#x5DF2;&#x7ECF;&#x6DFB;&#x52A0;&#x4E86;&#x76F8;&#x5173;&#x7684;&#x5C5E;&#x6027;&#x3001;&#x65B9;&#x6CD5;&#x548C;&#x5904;&#x7406;&#x6D41;&#x7A0B;&#x7B49;&#x3002;</p>
<h3 id="data&#x5C5E;&#x6027;"><a name="data&#x5C5E;&#x6027;" class="anchor-navigation-ex-anchor" href="#data&#x5C5E;&#x6027;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.1. data&#x5C5E;&#x6027;</h3>
<ul>
<li><a href="">model</a> &#x8BE5;&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x5BF9;&#x8C61;&#xFF0C;&#x5728;&#x8BE5;&#x7EC4;&#x4EF6;&#x7684;js&#x4EE3;&#x7801;&#x4E2D;&#x53EF;&#x901A;&#x8FC7; this.model &#x6765;&#x8BBF;&#x95EE;&#xFF0C;&#x5728;&#x8BE5;&#x7EC4;&#x4EF6;&#x7684;html&#x4EE3;&#x7801;&#x4E2D;&#x53EF;&#x901A;&#x8FC7;  &#x6765;&#x7ED1;&#x5B9A;&#xFF0C;xxx&#x4E3A;&#x5BF9;&#x5E94;&#x7684;&#x5B57;&#x6BB5;&#x3002;&#x5728;&#x7EC4;&#x4EF6;&#x6302;&#x8F7D;&#x4E4B;&#x540E;&#xFF0C;&#x4F1A;&#x81EA;&#x52A8;&#x6839;&#x636E;&#x8DEF;&#x7531;&#x4E0A;&#x7684;&#x53C2;&#x6570;&#xFF0C;&#x6765;&#x81EA;&#x52A8;&#x7684;&#x83B7;&#x53D6;&#x6570;&#x636E;&#x5230;&#x8BE5;model&#x4E2D;&#x3002;</li>
<li><a href="">roles</a> &#x5B58;&#x653E;&#x4E3A;&#x8BE5;&#x9875;&#x9762;&#x53EF;&#x8BBF;&#x95EE;&#x7684;&#x89D2;&#x8272;&#x5217;&#x8868;&#xFF0C;&#x53EF;&#x4EE5;&#x5B58;&#x653E;&#x4E00;&#x4E2A;&#x89D2;&#x8272;&#x6570;&#x7EC4;&#xFF0C;&#x7528;&#x5F53;&#x524D;&#x7528;&#x6237;&#x89D2;&#x8272;&#x6765;&#x5224;&#x5B9A;&#x662F;&#x5426;&#x6709;&#x8BBF;&#x95EE;&#x6743;&#x9650;&#x7B49;&#x3002;&#x76F8;&#x5173;&#x6D41;&#x7A0B;&#x9700;&#x8981;&#x60A8;&#x6839;&#x636E;&#x5177;&#x4F53;&#x4E1A;&#x52A1;&#x5B9E;&#x73B0;&#x3002;</li>
<li><a href="">currentUserId</a> &#x5B58;&#x653E;&#x5F53;&#x524D;&#x7528;&#x6237;id&#xFF0C;&#x5982;&#x679C;&#x9700;&#x8981;&#xFF0C;&#x9700;&#x8981;&#x6839;&#x636E;&#x60A8;&#x7684;&#x5177;&#x4F53;&#x4E1A;&#x52A1;&#x5B9E;&#x73B0;&#x3002;</li>
<li><a href="">showBox</a> &#x4E3A;&#x5F53;&#x524D;dom&#x7684;&#x663E;&#x793A;&#x72B6;&#x6001;&#xFF0C;&#x9ED8;&#x8BA4;&#x72B6;&#x6001;&#x4E3A;false&#xFF0C;&#x4E0D;&#x663E;&#x793A;&#x5F53;&#x524D;&#x9875;&#x7684;dom&#xFF0C;&#x5F53;&#x52A0;&#x8F7D;&#x6210;&#x529F;&#x6570;&#x636E;&#x540E;&#xFF0C;&#x8BE5;&#x72B6;&#x6001;&#x7F6E;&#x4E3A;true&#xFF0C;&#x663E;&#x793A;&#x8BE6;&#x60C5;&#x9875;&#x9762;&#x7684;dom&#xFF0C;&#x5373;&#x663E;&#x793A;&#x51FA;&#x6570;&#x636E;&#x3002;</li>
<li><a href="">more</a> &#x5B58;&#x653E;&#x5173;&#x8054;&#x6570;&#x636E;&#xFF0C;&#x6BD4;&#x5982;&#x5B58;&#x653E;&#x4E86;teacher&#x7684;&#x5173;&#x8054;&#x6570;&#x636E;&#x5BF9;&#x8C61;&#xFF0C;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x4EE5;&#x4E0B;&#x793A;&#x4F8B;&#x53D6;&#x5F97;&#x3002;<ul>
<li>&#x5982;&#x679C;&#x60A8;&#x4F7F;&#x7528;&#x4E86;&#x6211;&#x4EEC;&#x7684;devtools&#xFF0C;&#x5E76;&#x8BBE;&#x7F6E;&#x4E86;&#x5173;&#x8054;&#x6570;&#x636E;&#x7B49;&#xFF0C;&#x5C06;&#x5728;&#x751F;&#x6210;&#x8FC7;&#x7A0B;&#x4E2D;&#x81EA;&#x52A8;&#x6DFB;&#x52A0;&#x5BF9;&#x5173;&#x8054;&#x6570;&#x636E;&#x7684;&#x83B7;&#x53D6;&#x3002;</li>
</ul>
</li>
</ul>
<pre><code class="lang-javascript"><span class="hljs-keyword">let</span> teacher = <span class="hljs-keyword">this</span>.more.teacher;
</code></pre>
<h3 id="methods&#x65B9;&#x6CD5;"><a name="methods&#x65B9;&#x6CD5;" class="anchor-navigation-ex-anchor" href="#methods&#x65B9;&#x6CD5;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.2. methods&#x65B9;&#x6CD5;</h3>
<ul>
<li><a href="">edit()</a> &#x5982;&#x679C;&#x6709;&#x7F16;&#x8F91;&#x9875;&#x9762;&#xFF0C;&#x5E76;&#x4E14;&#x6309;&#x7167;&#x672C;&#x6587;&#x6863;&#x7684;&#x8DEF;&#x7531;&#x547D;&#x540D;&#xFF0C;&#x5C06;&#x8DF3;&#x8F6C;&#x5230;&#x8BE5;&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x7684;&#x7F16;&#x8F91;&#x9875;&#x9762;&#xFF0C;&#x5426;&#x5219;&#x53EF;&#x80FD;&#x4F1A;&#x51FA;&#x73B0;&#x9519;&#x8BEF;&#x3002;</li>
<li><a href="">showImage(imgUrl)</a> &#x663E;&#x793A;&#x56FE;&#x7247;&#x7684;&#x5927;&#x56FE;&#xFF0C;&#x5728;&#x8BE5;&#x57FA;&#x7840;&#x9879;&#x76EE;&#x4E2D;&#xFF0C;&#x9ED8;&#x8BA4;&#x662F;&#x7528;mint-ui&#x7684;&#x5F39;&#x51FA;&#x5C42;&#x5BF9;&#x56FE;&#x7247;&#x5927;&#x56FE;&#x8FDB;&#x884C;&#x663E;&#x793A;&#x3002;&#x662F;&#x7528;&#x8BE5;&#x529F;&#x80FD;&#x9700;&#x8981;&#x5728; <a href="">template</a> &#x4E2D;&#x6DFB;&#x52A0;&#x4E00;&#x4E0B;html&#xFF1A;</li>
</ul>
<pre><code class="lang-html">

</code></pre>
<ul>
<li><a href="">closeImgPanel()</a> &#x5173;&#x95ED;&#x5927;&#x56FE;&#x663E;&#x793A;&#xFF0C;&#x5F53; <a href="">showImage(imgUrl) </a> &#x65B9;&#x6CD5;&#x88AB;&#x8C03;&#x7528;&#x540E;&#xFF0C;&#x663E;&#x793A;&#x5927;&#x56FE;&#x5F39;&#x5C42;&#x4E4B;&#x540E;&#xFF0C;&#x70B9;&#x51FB;&#x5F39;&#x5C42;&#x5DE6;&#x4E0A;&#x89D2;&#x7684;&#x8FD4;&#x56DE;&#x6309;&#x94AE;&#xFF0C;&#x5C06;&#x4F1A;&#x51FA;&#x53D1;&#x8BE5;&#x65B9;&#x6CD5;&#xFF0C;&#x9000;&#x51FA;&#x5927;&#x56FE;&#x663E;&#x793A;&#x3002;</li>
<li><a href="">remove()</a> &#x5220;&#x9664;&#x8BE5;&#x6761;&#x6570;&#x636E;&#xFF0C;&#x5F53;&#x8C03;&#x7528;&#x8BE5;&#x65B9;&#x6CD5;&#x540E;&#xFF0C;&#x5C06;&#x5F39;&#x51FA;&#x5220;&#x9664;&#x786E;&#x8BA4;&#x6846;&#xFF0C;&#x786E;&#x8BA4;&#x540E;&#xFF0C;&#x5C06;&#x8BF7;&#x6C42;&#x5220;&#x9664;&#x6570;&#x636E;&#x7684;&#x63A5;&#x53E3;&#xFF0C;&#x8FDB;&#x884C;&#x6570;&#x636E;&#x53C2;&#x6570;&#x64CD;&#x4F5C;&#x3002;&#x5E76;&#x5728;&#x6570;&#x636E;&#x5220;&#x9664;&#x540E;&#x8DF3;&#x8F6C;&#x5230;&#x8BE5;&#x4E1A;&#x52A1;&#x7684;&#x5217;&#x8868;&#x9875;&#x4E0B;&#x3002;</li>
</ul>
<h3 id="&#x7EC4;&#x4EF6;&#x6302;&#x8F7D;"><a name="&#x7EC4;&#x4EF6;&#x6302;&#x8F7D;" class="anchor-navigation-ex-anchor" href="#&#x7EC4;&#x4EF6;&#x6302;&#x8F7D;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.3. &#x7EC4;&#x4EF6;&#x6302;&#x8F7D;</h3>
<ul>
<li>&#x5728;&#x7EC4;&#x4EF6;&#x6302;&#x8F7D;&#x4E4B;&#x540E;&#xFF0C;&#x5C06;&#x4F1A;&#x8BFB;&#x53D6;&#x8DEF;&#x7531;&#x4E2D;&#x7684;id&#x53C2;&#x6570;&#xFF0C;&#x5E76;&#x901A;&#x8FC7;&#x6B64;&#x53C2;&#x6570;&#x83B7;&#x53D6;this.model&#x7684;&#x6570;&#x636E;&#x3002;</li>
<li>&#x6302;&#x8F7D;&#x4E4B;&#x540E;&#xFF0C;&#x5982;&#x679C;this.more&#x4E3A;true&#xFF0C;&#x5219;&#x4F1A;&#x83B7;&#x53D6;&#x5176;&#x4ED6;&#x5173;&#x8054;&#x6570;&#x636E;&#x3002;</li>
</ul>
<h2 id="&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x83B7;&#x53D6;"><a name="&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x83B7;&#x53D6;" class="anchor-navigation-ex-anchor" href="#&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x83B7;&#x53D6;"><i class="fa fa-link" aria-hidden="true"></i></a>1.4. &#x8BE6;&#x60C5;&#x6570;&#x636E;&#x83B7;&#x53D6;</h2>
<ul>
<li>&#x63A5;&#x53E3;&#x5730;&#x5740;&#x4E3A;&#x8BE5;&#x7EC4;&#x4EF6;&#x4E2D;&#x7684; <code>/${this.name}/${id}</code>&#xFF0C;&#x6BD4;&#x5982;&#x5728;student&#x7684;&#x4E1A;&#x52A1;&#x4E2D;&#x4E3A; &apos;/student/${id}&apos;&#x3002;</li>
<li>&#x8BF7;&#x6C42;&#x65B9;&#x6CD5;&#x4E3A;GET&#x8BF7;&#x6C42;&#x3002;</li>
<li>&#x8BF7;&#x6C42;&#x5931;&#x8D25;&#x5C06;&#x63D0;&#x793A;&#x540E;&#x7AEF;&#x63A5;&#x53E3;&#x8FD4;&#x56DE;&#x7684;msg&#x5B57;&#x6BB5;&#x4E2D;&#x7684;&#x6D88;&#x606F;&#x63D0;&#x793A;&#xFF0C;&#x82E5;msg&#x6CA1;&#x6709;&#x6D88;&#x606F;&#x63D0;&#x793A;&#xFF0C;&#x5C06;&#x8FD4;&#x56DE;&#x83B7;&#x53D6;&#x6570;&#x636E;&#x5931;&#x8D25;&#x63D0;&#x793A;&#x3002;</li>
</ul>
<h3 id="&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x63A5;&#x53E3;"><a name="&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x63A5;&#x53E3;" class="anchor-navigation-ex-anchor" href="#&#x8BE6;&#x60C5;&#x6570;&#x636E;&#x63A5;&#x53E3;"><i class="fa fa-link" aria-hidden="true"></i></a>1.4.1. &#x8BE6;&#x60C5;&#x6570;&#x636E;&#x63A5;&#x53E3;</h3>
<ul>
<li>&#x63A5;&#x53E3;&#x5730;&#x5740;&#x4E3A;&#x8BE5;&#x7EC4;&#x4EF6;&#x4E2D;&#x7684; <code>/${this.name}/attachMore</code>&#xFF0C;&#x6BD4;&#x5982;&#x5728;student&#x7684;&#x4E1A;&#x52A1;&#x4E2D;&#x4E3A; &apos;/student/attachMore&apos;&#x3002;</li>
<li>&#x8BF7;&#x6C42;&#x65B9;&#x6CD5;&#x7ED9;GET&#x8BF7;&#x6C42;&#x3002;</li>
</ul>
<h3 id="&#x6570;&#x636E;&#x683C;&#x5F0F;"><a name="&#x6570;&#x636E;&#x683C;&#x5F0F;" class="anchor-navigation-ex-anchor" href="#&#x6570;&#x636E;&#x683C;&#x5F0F;"><i class="fa fa-link" aria-hidden="true"></i></a>1.4.2. &#x6570;&#x636E;&#x683C;&#x5F0F;</h3>
<ul>
<li>&#x8FD4;&#x56DE;&#x6570;&#x636E;&#x683C;&#x5F0F;&#x8BE6;&#x89C1;<a href="&#x57FA;&#x7840;/&#x63A5;&#x53E3;&#x6570;&#x636E;&#x683C;&#x5F0F;.md">&#x63A5;&#x53E3;&#x6570;&#x636E;&#x683C;&#x5F0F;</a>&#x3002;</li>
<li>&#x5176;&#x4E2D;data&#x4E3A;&#x5BF9;&#x8C61;,&#x8D4B;&#x503C;&#x5230;this.model, &#x4F8B;&#x5982;:</li>
</ul>
<pre><code class="lang-javascript">{
    <span class="hljs-string">&quot;code&quot;</span>:<span class="hljs-number">0</span>,
    <span class="hljs-string">&quot;data&quot;</span>:{
        <span class="hljs-string">&quot;active&quot;</span>:<span class="hljs-literal">true</span>,
        <span class="hljs-string">&quot;createBy&quot;</span>:<span class="hljs-number">10001</span>,
        <span class="hljs-string">&quot;createTime&quot;</span>:<span class="hljs-string">&quot;2018-07-02 21:14&quot;</span>,
        <span class="hljs-string">&quot;gendar&quot;</span>:<span class="hljs-string">&quot;M&quot;</span>,
        <span class="hljs-string">&quot;id&quot;</span>:<span class="hljs-number">1000000010</span>,
        <span class="hljs-string">&quot;modelName&quot;</span>:<span class="hljs-string">&quot;&#x5B66;&#x751F;&quot;</span>,
        <span class="hljs-string">&quot;name&quot;</span>:<span class="hljs-string">&quot;&#x6768;&#x671D;&quot;</span>,
        <span class="hljs-string">&quot;pk&quot;</span>:<span class="hljs-number">1000000010</span>,
        <span class="hljs-string">&quot;pkString&quot;</span>:<span class="hljs-string">&quot;1000000010&quot;</span>,
        <span class="hljs-string">&quot;pkType&quot;</span>:<span class="hljs-string">&quot;DBAI&quot;</span>,
        <span class="hljs-string">&quot;teacherId&quot;</span>:<span class="hljs-number">100001</span>,
        <span class="hljs-string">&quot;teacherName&quot;</span>:<span class="hljs-string">&quot;&#x5B54;&#x592B;&#x5B50;&quot;</span>,
        <span class="hljs-string">&quot;updateTime&quot;</span>:<span class="hljs-string">&quot;2018-07-02 23:30&quot;</span>
    },
    <span class="hljs-string">&quot;msg&quot;</span>:<span class="hljs-string">&quot;&#x64CD;&#x4F5C;&#x6210;&#x529F;&quot;</span>
}
</code></pre>
<h2 id="&#x6837;&#x5F0F;"><a name="&#x6837;&#x5F0F;" class="anchor-navigation-ex-anchor" href="#&#x6837;&#x5F0F;"><i class="fa fa-link" aria-hidden="true"></i></a>1.5. &#x6837;&#x5F0F;</h2>
<ul>
<li>&#x5728;.vue&#x7684;&#x8BE5;&#x7EC4;&#x4EF6;&#x4E2D;&#x6DFB;&#x52A0;&#x4E00;&#x4E0B;&#x4EE3;&#x7801;&#xFF0C;&#x5C06;&#x5F15;&#x5165;&#x8BE6;&#x60C5;&#x9875;&#x7684;&#x9ED8;&#x8BA4;&#x6837;&#x5F0F;&#xFF0C;&#x4EE5;&#x53CA;&#x5BF9;mint-ui&#x7684;&#x4E00;&#x4E9B;&#x6837;&#x5F0F;&#x7684;&#x4F18;&#x5316;&#x3002;</li>
</ul>
<pre><code>&lt;style scoped lang=&quot;stylus&quot; rel=&quot;stylesheet/stylus&quot;&gt;
    @import &quot;../../common/stylus/views/detailview.styl&quot;
&lt;/style&gt;
</code></pre><ul>
<li>&#x5176;&#x4ED6;&#x6837;&#x5F0F;&#x53EF;&#x4EE5;&#x5728; @import &#x8BED;&#x53E5;&#x4E0B;&#x9762;&#x5199;&#x5165;stylus&#x6837;&#x5F0F;&#x4EE3;&#x7801;&#x8FDB;&#x884C;&#x8C03;&#x6574;&#x3002;</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                

            </div>

            
                
                <a href="展示列表数据.html" class="navigation navigation-prev " aria-label="Previous page: 展示列表数据">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="添加新数据.html" class="navigation navigation-next " aria-label="Next page: 添加新数据">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"展示详情数据","level":"1.3.7","depth":2,"next":{"title":"添加新数据","level":"1.3.8","depth":2,"path":"基础/添加新数据.md","ref":"基础/添加新数据.md","articles":[]},"previous":{"title":"展示列表数据","level":"1.3.6","depth":2,"path":"基础/展示列表数据.md","ref":"基础/展示列表数据.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","sharing-plus","anchor-navigation-ex","theme-vuejs-2"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"search":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"theme-vuejs-2":{},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"mode":"float","pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"showLevel":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right","showGoTop":true,"isShowTocTitleIcon":true,"printLog":false,"multipleH1":true,"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false}},"sharing":{"qq":true,"all":["weibo","qq","linkedin","qzone","douban"],"douban":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Diboot移动端基础项目","gitbook":"*","description":"Diboot移动端基础项目"},"file":{"path":"基础/展示详情数据.md","mtime":"2018-11-08T08:51:40.892Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-10T15:10:03.285Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

